/**
 * Created by webrx on 2024/5/9.
 */
//导入@/utils/request.ts get post
import {get, post} from '@/utils/request'

//login api
export const login = async (data: any) => {
    return await post('/login', data)
}

//logout api 退出登录
import {useAppStore} from '@/stores/app'

const store = useAppStore()



export function logout(){
    store.logout()
}

export const menuList = async () => {
    return await get('/menus')
}
